package com.carrot.mq.common;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/8/28 19:37
 * 网络通信中的响应对象, 按照自定义协议的格式
 */
public class Response {

    private int type;

    private int length;

    private byte[] payload;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }
}
